package org.springblade.modules.repair.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class MaintainTimeSubmitDTO {

	@Min(value = 0)
	@Max(value = 1)
	@ApiModelProperty(value = "允许作业时间段 0: 不限，1: 时间段")
	private Integer type;

	@NotNull(message = "周不能为空")
	@ApiModelProperty(value = "一周中第几天（1-7）")
	private Integer week;

	@Valid
	@ApiModelProperty(value = "时间段集合")
	private List<MaintainTimeDTO> maintainTimeList;
}
